package com.qingcloud.wcenter.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

@Data
@AllArgsConstructor
public class AjaxResult implements Serializable {

    public AjaxResult() {
    }

    public AjaxResult(int code, String message) {
        this.erroCode = code;
        this.erroMsg = message;
    }

    @ApiModelProperty(value = "返回码 2000正常 其他错误", example = "2000")
    protected int erroCode;

    @ApiModelProperty(value = "异常信息 2000正常 其他错误", example = "网络错误")
    protected String erroMsg;

    @ApiModelProperty(value = "AJAX结果数据", example = "网络错误")
    private Object result;

}
